out:
return ret;
}
-#endif
static gboolean
create_empty_dir_with_uidgid (OstreeRepo *self,
return _ostree_repo_write_directory_meta (self, tmp_dir_info, NULL, out_csum, cancellable, error);
}
+#endif
/**
* ostree_repo_import_archive_to_mtree:
GCancellable *cancellable,
GError **error)
{
+#ifdef HAVE_LIBARCHIVE
gboolean ret = FALSE;
struct archive *a = archive;
struct archive_entry *entry;
ret = TRUE;
out:
return ret;
+#else
+ g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+ "This version of ostree is not compiled with libarchive support");
+ return FALSE;
+#endif
}
/**